package zyb.myproject;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

//这个类负责往文件中存储一个 管理员 账号 和密码
public class tests {

	public static void main(String[] args) throws IOException {
		FileOutputStream fos = new FileOutputStream("F:\\manager\\usermes\\zhangyanbo");
		ObjectOutputStream oos = new ObjectOutputStream(fos);

		oos.writeObject(new Administrator("zhangyanbo", 123456, "zyb"));

		oos.close();
	}
}
